#pragma once


#include <string>
#include <Windows.h>
using std::string;


class CAnimationFrame
{
private:
	int m_nFrameID;
	RECT m_rSource;
	RECT m_rCollision;
	RECT m_rAttack;
	float m_fDuration;
	string m_strEventTrigger;
	//int m_nAnchorPointX;
	//int m_nAnchorPointY;
	POINT m_pAnchor; 


public:
	CAnimationFrame(void);
	~CAnimationFrame(void);

	int GetFrameID(void) {return m_nFrameID;};
	RECT GetSourceRect(void) {return m_rSource;};
	RECT GetCollsionRect(void) {return m_rCollision;};
	RECT GetAttackRect(void) {return m_rAttack;};
	float GetFrameDuration(void) {return m_fDuration;};
	string GetEventTrigger(void) {return m_strEventTrigger;};
	POINT GetAnchorPoint(void) {return m_pAnchor;};

	void SetFrameID(int id) {m_nFrameID=id;};
	void SetSourceRect(int left, int top,int right,int bottom) {  m_rSource.left=left;m_rSource.top=top; m_rSource.right=right; m_rSource.bottom=bottom;};
	void SetCollisionRect(int left, int top,int right,int bottom) {  m_rCollision.left=left;m_rCollision.top=top; m_rCollision.right=right; m_rCollision.bottom=bottom;};
	void SetAttackRect(int left, int top,int right,int bottom) { m_rAttack.left=left;  m_rAttack.top=top;m_rAttack.right=right; m_rAttack.bottom=bottom;};
	void SetFrameDuration(float length) {m_fDuration=length;};
	void SetEventTrigger(string Trigger) {m_strEventTrigger=Trigger;};
	void SetAnchorPoint(int x,int y) {m_pAnchor.x=x; m_pAnchor.y=y;};



};

